import cherrypy
from logst.logs_abstraction import *

class starred:

   def index(self):

      yield cherrypy.root.header()

      cluster = self.cluster_master.instance()

      event = cluster.events.get_by_ref("starred")

      if not(event):
         yield cherrypy.root.draw_tip("""No log line has been flagged as "<b>starred</b>".""")

      else:
         yield html_print_logs(event.logs)

      yield cherrypy.root.footer()

   index.exposed = True
